package io.jee.runshan.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 语音问询
 * 
 * @author SunX
 *
 */
@Entity
@Table(name = "runshan_voice_ask")
public class VoiceAsk {

	private Integer id;
	private String voiceUrl;// 语音地址
	private String format;// 格式
	private Long msgId;// 消息ID
	private String recognition;// 语音识别结果
	private Integer isRead = 0;// 0：未读 1：已读
	private Integer replyState = 0;// 回复状态 0：未回复 1：已回复2:自动回复
	private String wxOpenid;
	private String wxAccount;// 微信
	private String wxNikeName;// 微信昵称
	private Date publishTime; // 发布时间
	private Integer type = 0; // 0-语音；1-文字

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getVoiceUrl() {
		return voiceUrl;
	}

	public void setVoiceUrl(String voiceUrl) {
		this.voiceUrl = voiceUrl;
	}

	public Integer getIsRead() {
		return isRead;
	}

	public void setIsRead(Integer isRead) {
		this.isRead = isRead;
	}

	public Integer getReplyState() {
		return replyState;
	}

	public void setReplyState(Integer replyState) {
		this.replyState = replyState;
	}

	public String getWxAccount() {
		return wxAccount;
	}

	public void setWxAccount(String wxAccount) {
		this.wxAccount = wxAccount;
	}

	public String getWxNikeName() {
		return wxNikeName;
	}

	public void setWxNikeName(String wxNikeName) {
		this.wxNikeName = wxNikeName;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	public Long getMsgId() {
		return msgId;
	}

	public void setMsgId(Long msgId) {
		this.msgId = msgId;
	}

	public String getRecognition() {
		return recognition;
	}

	public void setRecognition(String recognition) {
		this.recognition = recognition;
	}

	public String getWxOpenid() {
		return wxOpenid;
	}

	public void setWxOpenid(String wxOpenid) {
		this.wxOpenid = wxOpenid;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}
